package com.yztstudy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yztstudy.dto.LoginFormDTO;
import com.yztstudy.dto.Result;
import com.yztstudy.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * User的业务逻辑层接口
 */
public interface IUserService extends IService<User> {

    public abstract Result sendCode(String phone, HttpSession session); //发送手机验证码

    public abstract Result login(LoginFormDTO loginForm, HttpSession session); //登录功能

    public abstract Result logout(HttpServletRequest request); //用户退出登录的功能

    public abstract Result sign(); //实现用户签到的功能

    public abstract Result signCount(); //统计用户在本月中，截止到今天的连续签到天数
}
